<html>
<head><meta charset="utf-8"><title>hacking collector::execute::rustc · t-compiler/performance · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/index.html">t-compiler/performance</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/hacking.20collector.3A.3Aexecute.3A.3Arustc.html">hacking collector::execute::rustc</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="247291358"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/hacking%20collector%3A%3Aexecute%3A%3Arustc/near/247291358" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pnkfelix <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/hacking.20collector.3A.3Aexecute.3A.3Arustc.html#247291358">(Jul 27 2021 at 03:46)</a>:</h4>
<p>As mentioned at end of <a class="stream-topic" data-stream-id="247081" href="/#narrow/stream/247081-t-compiler.2Fperformance/topic/rustc-perf.20collector.20ID">#t-compiler/performance &gt; rustc-perf collector ID</a> , I am trying to add a variant of collector/src/execute/rustc.rs that will collect timing for incremental re-bootstraps. All I want to do at this point is try some stuff out locally. But I’m struggling to even figure out how to properly test <code>collector::execute::rustc</code> locally. Just doing <code>./target/release/collector bench_local /path/to/rustc  a_name_i_made  --include rustc</code> runs that code, but I’m having trouble finding a version of <code>rustc</code> that’s compatible with the <code>rust.git</code> that the benchmarker checks out.</p>



<a name="247291378"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/hacking%20collector%3A%3Aexecute%3A%3Arustc/near/247291378" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pnkfelix <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/hacking.20collector.3A.3Aexecute.3A.3Arustc.html#247291378">(Jul 27 2021 at 03:47)</a>:</h4>
<p>(which I would have thought would be as simple as using <code>build/x86_64-unknown-linux-gnu/stage0/bin/rustc</code> — after all, that is what we bootstrap atop, right?)</p>



<a name="247291591"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/hacking%20collector%3A%3Aexecute%3A%3Arustc/near/247291591" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pnkfelix <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/hacking.20collector.3A.3Aexecute.3A.3Arustc.html#247291591">(Jul 27 2021 at 03:52)</a>:</h4>
<p>oh wait, maybe the problem is my feeding in <code>a_name_i_made</code> above</p>



<a name="247291969"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/hacking%20collector%3A%3Aexecute%3A%3Arustc/near/247291969" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pnkfelix <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/hacking.20collector.3A.3Aexecute.3A.3Arustc.html#247291969">(Jul 27 2021 at 04:01)</a>:</h4>
<p>I don’t know. Right now, the failure I get when passing in the <code>stage0</code> path is this:</p>
<div class="codehilite"><pre><span></span><code>   Compiling core v0.0.0 (/media/pnkfelix/Rust/rustc-perf/rust/library/core)
error[E0557]: feature has been removed
   --&gt; library/core/src/lib.rs:163:12
    |
163 | #![feature(external_doc)]
    |            ^^^^^^^^^^^^ feature has been removed
    |
    = note: use #[doc = include_str!(&quot;filename&quot;)] instead, which handles macro invocations
</code></pre></div>
<p>so I’m still guessing its some mismatch between the repo that <code>collector</code> checks out versus the bootstrap I’m referring to.</p>



<a name="247292179"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/hacking%20collector%3A%3Aexecute%3A%3Arustc/near/247292179" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pnkfelix <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/hacking.20collector.3A.3Aexecute.3A.3Arustc.html#247292179">(Jul 27 2021 at 04:05)</a>:</h4>
<p>Oh, I think I see what was happening. The script was saying <code>HEAD is now at cdbe2888979 Auto merge of #85634 - RalfJung:miri, r=RalfJung</code>. I guess the default branch was an out-dated HEAD.</p>



<a name="247292350"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/hacking%20collector%3A%3Aexecute%3A%3Arustc/near/247292350" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pnkfelix <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/hacking.20collector.3A.3Aexecute.3A.3Arustc.html#247292350">(Jul 27 2021 at 04:09)</a>:</h4>
<p>/me muses if there are any worthwhile safeguards to try to put in here, or if its just too hard to detect this well.</p>



<a name="247296090"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/hacking%20collector%3A%3Aexecute%3A%3Arustc/near/247296090" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pnkfelix <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/hacking.20collector.3A.3Aexecute.3A.3Arustc.html#247296090">(Jul 27 2021 at 05:37)</a>:</h4>
<p>Ah, RUST_LOG=trace gives much more info than RUST_LOG=debug for the bootstrap benchmark!</p>



<a name="247772262"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/hacking%20collector%3A%3Aexecute%3A%3Arustc/near/247772262" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Tyson Nottingham <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/hacking.20collector.3A.3Aexecute.3A.3Arustc.html#247772262">(Jul 30 2021 at 23:12)</a>:</h4>
<p>Probably not helpful, but this issue is slightly relevant -- <a href="https://github.com/rust-lang/rustc-perf/issues/837">https://github.com/rust-lang/rustc-perf/issues/837</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>